import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid, systemid } from '../../atom/config';
interface Message {
	filter: {
		project_no: string
	};
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const p = query(action_id, session_id, systemid);
	p.prepare('project_assets', ['project_asset_no', 'assetsname', 'brand_no'],
		{ productid, project_no: message.filter.project_no }, 200, 1, [], []);
	const [dt2] = await p.exec();

	return { dt2 };
}
